package javase.javase01.exercise05;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author: Gan
 * @date 2021/4/17 0017 10:34
 * @description:
 **/
public class TestButterDemo {
    public static void main(String[] args) throws  IOException {
        System.out.println(System.getProperty("user.dir"));
        BufferedInputStream bi =
                new BufferedInputStream(new FileInputStream("a.txt"));
        ButterDemo br = new ButterDemo(bi);
        int readDate ;
       while ((readDate=br.read())!=-1){
           char readDate1 = (char) readDate;
           if ((readDate > 'A' && readDate < 'Z') || (readDate > 'a' && readDate < 'z')) {
               System.out.print(readDate1+" ");
           }
       }
    }
}
